from langchain_openai.chat_models import ChatOpenAI
from langchain_core.messages import HumanMessage, SystemMessage


def main():
    model = ChatOpenAI(model="deepseek-chat",
                       base_url="https://api.deepseek.com/v1",
                       api_key="sk-8dc473523a15460ea1fee03e5d98064d")
    
    messages = [
        SystemMessage("Translate the following from English into Italian"),
        HumanMessage("hi!"),
    ]
    response = model.invoke(messages)
    print(response.content)


if __name__ == "__main__":
    main()
